#include "Names.h"
#include <stdlib.h>
#include <stdio.h>


char setName1() {
	Name name1;
	printf("Player 1 - choose your name.\t(PRESS ENTER)\n");
	gets(&name1.name);
	printf("Your name is ");
	puts(&name1.name);
	printf("(PRESS ENTER)\n");
	getchar();
	system("cls");
	return name1.name;
}

Name setName2() {
	Name name2;
	printf("Player 2 - choose your name.\t(PRESS ENTER)\n");
	scanf_s("%s",&name2.name);
	printf("Your name is %s.\t(PRESS ENTER)\n\n",name2.name);
	getchar();
	getchar();
	system("cls");
	return name2;
}

char getName(Name *pName) {
	return pName->name;
}